package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Entity
@Table(name = "client_address")
public class Address implements Serializable {
    private static final long serialVersionUID = 5925926783677036858L;

    @Id
    @Column(name = "id_bigint", columnDefinition = "bigint(20)")
    private Long id;
    @Column(name = "client_id_bigint", columnDefinition = "bigint(20)")
    private Long clientId;
    @Column(name = "c_name_nvarchar", columnDefinition = "varchar(255)")
    private String cName;
    @Column(name = "c_phone_nvarchar", columnDefinition = "varchar(255)")
    private String cPhone;
    @Column(name = "c_detail_nvarchar", columnDefinition = "varchar(255)")
    private String cDetail;
    @Column(name = "c_address_nvarchar", columnDefinition = "varchar(255)")
    private String cAddress;
    @Column(name = "default_bit", columnDefinition = "tinyint(1)")
    private Boolean defaultBit;
    @Column(name = "area_nvarchar", columnDefinition = "varchar(255)")
    private String area;
}
